home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Utilities / Converters / Convert_MacPaint / Source / PSstuff / UnpackedCode < prev   
Text File  |  1995-06-12  |  509b  |  28 lines

  1. %BEGIN MacPaint
  2.  
  3. %
  4. %    Create the string that will be used to hold the image data as it
  5. %    is retrieved (72 bytes per macpaint scan line)
  6. %
  7. /scanline 72 string def
  8.  
  9. %
  10. %    - showMPimage -
  11. %
  12. %    This reads the image data in, and displays the image properly. 
  13. /showMPimage 
  14.     576 720 scale 
  15.     576 720 1 
  16.     [576 0 0 -720 0 720] 
  17.     {currentfile scanline readhexstring pop} 
  18.     image
  19.     % Discard the final > char.  (Also consumes preceeding newline)
  20.     currentfile read pop pop
  21.     currentfile read pop pop
  22. }
  23. def
  24.  
  25. %END MacPaint
  26.